package com.campus.counseling.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.campus.counseling.enums.WarningLevel;
import org.apache.ibatis.type.EnumTypeHandler;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("mental_health_warning")
public class MentalHealthWarning {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    private BigDecimal riskScore;
    
    @TableField(value = "warning_level", typeHandler = EnumTypeHandler.class)
    private WarningLevel warningLevel;
    
    private BigDecimal lstmScore;
    private LocalDateTime createTime;
} 